$OpenBSD: patch-configure_in,v 1.4 2014/03/21 10:26:49 espie Exp $
--- configure.in.orig	Tue Jul 15 01:07:48 2008
+++ configure.in	Tue Mar 18 17:52:25 2014
@@ -130,7 +130,7 @@ AC_ARG_WITH(binpac,
 
 AC_LBL_ENABLE_CHECK([activemapping binpac broccoli brov6 debug \
 	expire-dfa-states gtk-doc int64 openssl perftools perl \
-	select-loop shippedpcap])
+	select-loop shippedpcap silent-rules])
 
 dnl ################################################
 dnl # OpenSSL
@@ -217,6 +217,13 @@ if test "$use_openssl" = "yes"; then
   AC_LANG_POP([C++])
 fi
 
+if test "$use_openssl" = "yes"; then
+  AC_CHECK_TYPE(STACK, 
+		AC_DEFINE([OPENSSL_STACK_TYPE], [STACK], [OpenSSL's stack type]),
+		AC_DEFINE([OPENSSL_STACK_TYPE], [_STACK], [OpenSSL's stack type]),
+		[#include <openssl/stack.h>])
+fi
+
 # do we use ssl?
 AM_CONDITIONAL(USE_SSL, test "$use_openssl" = "yes")
 
@@ -506,9 +513,10 @@ dnl We assume worst case first and improve on it below
 AM_CONDITIONAL(USE_NBDNS, false)
 
 dnl Add potential header locations to path
-if test -d /usr/local/include/bind; then
-   CFLAGS="$CFLAGS -I/usr/local/include/bind"
-fi
+dnl XXX OpenBSD build fails if libbind package is picked up
+dnl if test -d /usr/local/include/bind; then
+dnl   CFLAGS="$CFLAGS -I/usr/local/include/bind"
+dnl fi
 
 AC_CHECK_TYPE(ns_msg, bro_check_nb_dns=yes, bro_check_nb_dns=no, [#include <arpa/nameser.h>])
 
